<?php

class Facebook
{
    /*
    * $send_button: true, false
    * $layout: standard, button_count, box_count 
    * $show_faces: true, false
    * $colorscheme: dark, light
    * $font: arial, lucida grande, segoe ui, tahoma, trebuchet ms, verdana
    */
    function likebutton($url, $send_button='true', $layout='standard', $width=450, $show_faces='true', $action='like', $colorscheme = 'light', $font = 'verdana'){
       return '<script src="http://connect.facebook.net/hu_HU/all.js#xfbml=1"></script><fb:like href="'.$url.'" send="'.$send_button.'" layout="'.$layout.'" width="'.$width.'" show_faces="'.$show_faces.'" action="'.$action.'" colorscheme="'.$colorscheme.'" font="'.$font.'"></fb:like>';
    }
    
    /*
     * $type: button, icon, icon_link
     */
    function sharebutton($url, $type, $caption){
        return '<a name="fb_share" type="'.$type.'" share_url="'.$url.'">'.$caption.'</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
    }
}
?>
